package com.baizhi.entity;

import java.util.Date;

public class Book {
    private Integer book_id;
    private String book_name;
    private Integer book_price;
    private String author;
    private Date add_time;
    private Integer category_id;

    public Book() {
    }

    @Override
    public String toString() {
        return "Book{" +
                "book_id=" + book_id +
                ", book_name='" + book_name + '\'' +
                ", book_price=" + book_price +
                ", author='" + author + '\'' +
                ", add_time=" + add_time +
                ", category_id=" + category_id +
                '}';
    }

    public Book(Integer book_id, String book_name, Integer book_price, String author, Date add_time, Integer category_id) {
        this.book_id = book_id;
        this.book_name = book_name;
        this.book_price = book_price;
        this.author = author;
        this.add_time = add_time;
        this.category_id = category_id;
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public Integer getBook_price() {
        return book_price;
    }

    public void setBook_price(Integer book_price) {
        this.book_price = book_price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getAdd_time() {
        return add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    public Integer getCategory_id() {
        return category_id;
    }

    public void setCategory_id(Integer category_id) {
        this.category_id = category_id;
    }
}
